package com.jeeos.framework.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeos.framework.security.domain.JeeosAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface JeeosAccountMapper extends BaseMapper<JeeosAccount> {

    @Select("select * from sys_user where login_name like #{loginName}")
    JeeosAccount selectByLoginName(@Param("loginName")String loginName);

    @Select("select * from sys_user where email like #{email}")
    JeeosAccount selectByEmail(@Param("email")String email);

    @Select("select * from sys_user where login_name like #{phoneNumber}")
    JeeosAccount selectByPhoneNumber(@Param("phoneNumber")String phoneNumber);
}
